const token = 'TOKEN'
const userId = 'USER_ID'

/* export const getToken = () => localStorage.getItem(token)
export const setToken = params => localStorage.setItem(token, params)
export const removeToken = () => localStorage.removeItem(token)

export const getUserId = () => localStorage.getItem(userId)
export const setUserId = params => localStorage.setItem(userId, params)
export const removeUserId = () => localStorage.removeItem(userId)
 */
export const getToken = () => uni.getStorageSync(token)
export const setToken = params => uni.setStorageSync(token, params)
export const removeToken = () => uni.removeStorageSync(token)

export const getUserId = () => uni.getStorageSync(userId)
export const setUserId = params => uni.setStorageSync(userId, params)
export const removeUserId = () => uni.removeStorageSync(userId)